package com.dc.business.datacollectbusiness.service.impl;

import com.dc.business.datacollectbusiness.entity.CollectorPassage;
import com.dc.business.datacollectbusiness.mapper.CollectorPassageMapper;
import com.dc.business.datacollectbusiness.mapper.MeterMapper;
import com.dc.business.datacollectbusiness.service.CollectorPassageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CollectorPassageServiceImpl implements CollectorPassageService {
    @Autowired
    private CollectorPassageMapper collectorPassageMapper;
    @Autowired
    private MeterMapper meterMapper;
    @Override
    public List<CollectorPassage> getCollectorPassageByCollectorCode(String collectorCode) {
        return collectorPassageMapper.selectCollectorPassageByCollectorCode(collectorCode);
    }

    @Override
    public void updateCollectorPassage(CollectorPassage collectorPassage) {
        collectorPassageMapper.updateCollectorPassage(collectorPassage);
    }

    @Override
    public boolean updateCollectorPassagestate(int collectPassageId,String ScheduleNumbering) {
        return collectorPassageMapper.updateCollectorPassagestate(collectPassageId,ScheduleNumbering);
    }

}
